import wx


def onClick(event):
    staticText.LabelText="lalala"

app = wx.App()
frm = wx.Frame(None, title="学习系统", size=(600, 600), pos=(200, 200))  # pos是相对于屏幕左上角的横纵坐标
frm.Show()
pl = wx.Panel(frm, size=(500, 500), pos=(10, 10))
pl.Show()

staticText = wx.StaticText(pl, label="欢迎你", pos=(30, 30))
staticText.Show()
btn = wx.Button(pl, label="测试", pos=(80, 80))
btn.Show()
frm.Bind(wx.EVT_BUTTON, onClick, btn)
app.MainLoop()
